.switch {
    display: inline-flex;
    align-items: center;
}
.switch input {
    display: none;
}
.switch span {
    width: 2.5rem;
    height: 1.5rem;
    background-color: #ddd;
    border-radius: 15px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}
.switch span::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0.2rem;
    transform: translateY(-50%);
    transition: left 0.3s;
}
.switch input:checked + span {
    background-color: #48c774; /* Bulma's green color */
}
.switch input:checked + span::before {
    left: 1.2rem;
}